<?php
/**
 * Home code file
 * @package WordPress
 * @subpackage modulo_padrao
 */
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head>
	<?php get_header(); ?>
</head>
<body>	
	
	<!-- Wrapper -->
	<div id="page">
		<?php include(TEMPLATEPATH . "/inc/cabecalho.php"); ?>
		<!-- Content -->
		<div class="content">
			<div id="container">
				<div class="wrapper search">
					<p class="page-info">
						<?php $breadcrumb->display(); ?>
					</p>
					
					<h1 class="page-title txt-replace pngfix"><span class="ico-title pngfix">Resultado de busca</span></h1>
					
					<p class="page-info">
						Resultados de pesquisa para <strong>&quot;<?php the_search_query();?>&quot;</strong>
					</p>
					
					<?php if(have_posts()): //init the loop?>
						<div class="list-posts">
							<?php while(have_posts()): the_post();?>
							
							<div class="entry">
								<h2 class="post-title"><a href="<?php the_permalink();?>" rel="bookmark"><?php the_title();?></a></h2>
								
								<p class="post-info">
									<span class="post-author">por: <?php echo get_the_author_meta('display_name');?></span>
									<span class="time"><abbr title="<?php the_time('c');?>"><?php the_time('d\/m\/Y');?></abbr></span>
								</p>
								
								<div class="post-content">
									<?php the_excerpt('leia mais...');?>
								</div>
								
								<div class="post-meta">
									<p class="num-comments">
										<?php comments_popup_link('Comentários (0)', 'Comentários (1)','Comentários (%)')?>
									</p>
									<p class="post-category">
										<strong>Categorias:</strong> <?php the_tags('',', ', '');?>
									</p>
								</div>
							</div>
							<?php endwhile;?>
						</div>
						
						<div class="paginate">
							<?php previous_posts_link('<span>&lsaquo; Mais novas</span>');?>
							<span class="alignright">
								<?php next_posts_link('<span>Mais antigas &rsaquo;</span>');?>
							</span>
						</div>
						
					<?php else:?>
						<div class="not-found">
							<?php include(TEMPLATEPATH . '/inc/not-found.php')?>
						</div>
					<?php endif; //end the loop ?>
				</div>
				<?php get_sidebar();?>
			</div>
		</div>
		<!-- // Content -->
		<?php include(TEMPLATEPATH."/inc/rodape.php")?>
	</div>
	<!-- // Wrapper -->
		
<?php get_footer(); ?>
</body>
</html>